package com.yyw.foodie.bo.users;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author 易煜玮
 * @ClassName UserBo.java
 * @Description 用户注册前端给到后端的BO类
 * @createTime 2021年05月22日 19:12:00
 */
@ApiModel(value = "用户注册BO类", description = "用户注册时前端传递给后端的实体信息")
@Data
public class UserRegisterBo {
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    private String userName;
    /**
     * 用户密码
     */
    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不能为空")
    private String passWord;
    /**
     * 确认密码
     */
    @ApiModelProperty(value = "确认密码", required = true)
    @NotBlank(message = "确认密码不能为空")
    private String configPassWord;
}
